package com.znsd.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 商品版本表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("spu_version")
public class SpuVersion extends Model<SpuVersion> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 商品id
     */
    @TableField("spu_id")
    private Long spuId;
    /**
     * 商品版本
     */
    @TableField("spu_version")
    private String spuVersion;
    /**
     * 是否启用
     */
    @TableField("is_enabled")
    private String isEnabled;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public String getSpuVersion() {
        return spuVersion;
    }

    public void setSpuVersion(String spuVersion) {
        this.spuVersion = spuVersion;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SpuVersion{" +
        "id=" + id +
        ", spuId=" + spuId +
        ", spuVersion=" + spuVersion +
        ", isEnabled=" + isEnabled +
        "}";
    }
}
